<?php /* Smarty version Smarty-3.1.13, created on 2013-04-19 15:13:10
         compiled from "show.html" */ ?>
<?php /*%%SmartyHeaderCode:88395170ee8603a111-33771145%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '202169ff7c4dc4ba16fb46b9840dec995ff4585b' => 
    array (
      0 => 'show.html',
      1 => 1366355551,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '88395170ee8603a111-33771145',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'username' => 0,
    'db_count' => 0,
    'db_coltitle' => 0,
    'col' => 0,
    'db_rows' => 0,
    'dbrow' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5170ee8625a1c4_78000219',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5170ee8625a1c4_78000219')) {function content_5170ee8625a1c4_78000219($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<link href="smarty2.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery1.3.2.js"></script>
<script type="text/javascript" src="smarty2.js"></script>
<title>报告记录</title>
</head>
<body>
<div>
<h3>当前账户：<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</h3><a href="logout.php">注销</a></div>
<br/>
<h1>报告记录</h1>
<table id="Table" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">当前记录数：<label id="tableRowCount"><?php echo $_smarty_tpl->tpl_vars['db_count']->value;?>
</label>      <input type="button" value="Add" onclick="addFun()" /> </caption>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['db_coltitle']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
    <th><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
</th>
<?php } ?>
<th>操作</th>
<?php  $_smarty_tpl->tpl_vars['dbrow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dbrow']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['db_rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dbrow']->key => $_smarty_tpl->tpl_vars['dbrow']->value){
$_smarty_tpl->tpl_vars['dbrow']->_loop = true;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["id"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["bg_people_name"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["title"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["start_date"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["statu"];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['dbrow']->value["node"];?>
</td>
	<td>
		<input type="button" value="进入" onclick='gotoSelectPage("<?php echo $_smarty_tpl->tpl_vars['dbrow']->value["id"];?>
");' />
	</td> 
    </tr>
<?php } ?>
</table>

<div id="editdiv" style="display:none;color:red;" align="center">
 <form>
 id:<input type=text id="editdiv_id" readonly="true" />
 name:<input type=text id="editdiv_name" />
 <input type=button name="Updata" value="Updata" onclick="updataFun()" />
</form>
</div>
<div id="adddiv" style="display:none;color:green;" align="center">
 <form>
 报告标题:<input type=text id="title" />
 备注:<input type=text id="note" />
 <input type=button name="Insert" value="Insert" onclick='insertBg("<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
")' / >
 
</form>
</div>

<div id="error"></div>
</body>
</html><?php }} ?>